]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Remove summary notification
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Feb 2015 02:19:49 +0000 (03:19 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 20 Feb 2015 16:39:59 +0000 (17:39 +0100)
Using a "There are too many notifications" notification is a bit odd,
and we will address the issue differently soon. So rather than update
the notification to do something else than opening the mostly empty and
useless tray when clicked, remove it altogether.

https://bugzilla.gnome.org/show_bug.cgi?id=744850

js/ui/messageTray.js

index 4bf25805ef2ac7870b295f4a9c447b21eb903128..2e879fd94c72996232206b11d877564c239dd565 100644 (file)
@@ -2036,22 +2036,8 @@ const MessageTray = new Lang.Class({
             if (shouldShowNotification && nextNotification) {
                 let limited = this._busy || Main.layoutManager.bottomMonitor.inFullscreen;
                 let showNextNotification = (!limited || nextNotification.forFeedback || nextNotification.urgency == Urgency.CRITICAL);
-                if (showNextNotification) {
-                    let len = this._notificationQueue.length;
-                    if (len > 1) {
-                        this._notificationQueue.length = 0;
-                        let source = new SystemNotificationSource();
-                        this.add(source);
-                        let notification = new Notification(source, ngettext("%d new message", "%d new messages", len).format(len));
-                        notification.setTransient(true);
-                        notification.connect('activated', Lang.bind(this, function() {
-                            this.openTray();
-                        }));
-                        source.notify(notification);
-                    } else {
-                        this._showNotification();
-                    }
-                }
+                if (showNextNotification)
+                    this._showNotification();
             }
         } else if (this._notificationState == State.SHOWN) {
             let expired = (this._userActiveWhileNotificationShown &&